<%@ Page Language="c#" Inherits="PHSRAG.Insight21.Humans.DeviceSelectionPage" CodeFile="DeviceSelectionPage.aspx.cs"
    MaintainScrollPositionOnPostback="true" %>

<%@ Register TagPrefix="uc1" TagName="ProtocolDetailHeader" Src="ProtocolDetailHeader.ascx" %>
<%@ Register TagPrefix="cc1" Namespace="PHSRAG.Insight21.InsightWebControls" Assembly="PHSRAG.Insight21.InsightWebControls" %>
<%@ Register TagPrefix="cc2" Namespace="PHSRAG.WebControls" Assembly="PHSRAG.WebControls" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Device Selection</title>
    <link href="../Insight21.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="deviceSelectionPage" method="post" runat="server">
        <table class="Container">
            <tr>
                <td>
                    <cc2:PostbackGuard ID="postbackGuard" runat="server"></cc2:PostbackGuard>
                    <cc2:SetFocus ID="setFocus" runat="server"></cc2:SetFocus>
                    <asp:Panel ID="headerSection" runat="server">
                        <table cellspacing="0" width="100%">
                            <tr>
                                <td>
                                    <cc1:Header ID="header" runat="server"></cc1:Header>
                                </td>
                            </tr>
                            <tr style="display: none">
                                <td>
                                    <cc1:HumansSubNavigation ID="humansSubNavigation" runat="server" Visible="False"></cc1:HumansSubNavigation>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <cc1:HumansSubModuleNavigation ID="humansSubModNavigation" runat="server"></cc1:HumansSubModuleNavigation>
                                </td>
                            </tr>
                        </table>
                        <table cellspacing="0" width="100%">
                            <tr>
                                <td>
                                    <uc1:ProtocolDetailHeader ID="protocolDetailHeader" runat="server"></uc1:ProtocolDetailHeader>
                                </td>
                            </tr>
                        </table>
                        <table class="PlaceBar" width="100%">
                            <tr>
                                <td>
                                    <cc2:BreadCrumb ID="breadCrumb" runat="server"></cc2:BreadCrumb>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <table>
                        <tr>
                            <td>
                                <cc2:Annunciator ID="annunciator" runat="server"></cc2:Annunciator>
                            </td>
                        </tr>
                    </table>
                    <table cellspacing="0" cellpadding="0" width="100%">
                        <tr>
                            <td colspan="3">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                &nbsp;<strong>Device Selection</strong></td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                &nbsp;
                                <asp:Panel ID="searchSection" runat="server">
                                    <table cellspacing="0" cellpadding="0" width="100%">
                                        <tr>
                                            <td style="width:5%">
                                            </td>
                                            <td>
                                                To search, select the device type (you must select one):
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width:5%">
                                            </td>
                                            <td style="width:90%">
                                                <asp:RadioButtonList ID="nameType" runat="server" AutoPostBack="True" EnableViewState="False"
                                                    RepeatDirection="Vertical" OnSelectedIndexChanged="OnNameTypeSelectedIndexChanged">
                                                    <asp:ListItem Value="DN">Proprietary Device Name</asp:ListItem>
                                                    <asp:ListItem Value="CN">Common/Generic Name</asp:ListItem>
                                                </asp:RadioButtonList></td>
                                            <td style="width:5%">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                &nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td style="width:5%">
                                            </td>
                                            <td>
                                                Enter the name of device (you must enter at least the first character to search):
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                            </td>
                                            <td>
                                                <table>
                                                    <tr>
                                                        <td valign="top">
                                                            <asp:TextBox ID="deviceName" runat="server" CssClass="FlatTextBox"></asp:TextBox>&nbsp;</td>
                                                        <td valign="bottom">
                                                            <asp:ImageButton ID="searchDevice" runat="server" ImageUrl="../Images/b_search.gif"
                                                                Visible="False"></asp:ImageButton>
                                                            <asp:RequiredFieldValidator ID="searchNameValidator" runat="server" ErrorMessage="Please enter at least the first character to search"
                                                                ControlToValidate="deviceName"></asp:RequiredFieldValidator></td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="3">
                                                &nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td>
                                            </td>
                                            <td align="left">
                                                <asp:Label ID="pickOne" Visible="False" Text="Select device and [MANUFACTURER]" runat="server"><span style="font-weight:bold">
															Search Results</span><br />Select device and [MANUFACTURER]</asp:Label></td>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="height: 32px">
                                            </td>
                                            <td style="height: 32px">
                                                <asp:ListBox ID="deviceList" runat="server" Rows="5" Visible="false"></asp:ListBox></td>
                                            <td style="height: 32px">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="3">
                                                &nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td colspan="3">
                                                &nbsp;</td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                                <table cellspacing="0" cellpadding="0" width="100%">
                                    <tr>
                                        <td style="width:5%">
                                        </td>
                                        <td colspan="2">
                                            If the device is not found, click checkbox to enter name and manufacturer.
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                        </td>
                                        <td style="width:100%">
                                            <asp:CheckBox ID="addDevice" runat="server" AutoPostBack="True" Text="Add New Device"
                                                Enabled="False" OnCheckedChanged="OnAddDeviceCheckedChanged"></asp:CheckBox></td>
                                        <td>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="3">
                                            &nbsp;</td>
                                    </tr>
                                </table>
                                <asp:Panel ID="newDeviceDetails" runat="server" Visible="False">
                                    <table cellspacing="0" cellpadding="0" width="100%">
                                        <tr>
                                            <td style="width:5%">
                                            </td>
                                            <td>
                                                Select the Type:&nbsp;</td>
                                            <td style="width:5%">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width:5%">
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="newDeviceNameType" runat="server" EnableViewState="False" CssClass="FlatDropDown">
                                                    <asp:ListItem Value="DN">Proprietary Device Name</asp:ListItem>
                                                    <asp:ListItem Value="CN">Common/Generic Name</asp:ListItem>
                                                </asp:DropDownList></td>
                                            <td style="width:5%">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                &nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td style="width:5%">
                                            </td>
                                            <td>
                                                Enter Proprietary Device Name and/or Common/Generic Name</td>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                &nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td style="width:5%">
                                            </td>
                                            <td>
                                                Proprietary Device Name:&nbsp;</td>
                                            <td style="width:5%">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width:5%">
                                            </td>
                                            <td>
                                                <asp:TextBox ID="newDeviceName" runat="server" CssClass="FlatTextBox"></asp:TextBox></td>
                                            <td style="width:5%">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                &nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td>
                                            </td>
                                            <td>
                                                Common/Generic Name:&nbsp;</td>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="newCommonName" runat="server" CssClass="FlatTextBox"></asp:TextBox></td>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                &nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td>
                                            </td>
                                            <td>
                                                Manufacturer:&nbsp;</td>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="newManufacturer" runat="server" CssClass="FlatTextBox"></asp:TextBox></td>
                                            <td>
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width:5%">
                            </td>
                            <td>
                                <asp:ImageButton ID="cancel" runat="server" ImageUrl="../Images/b_cancel.gif" CausesValidation="False">
                                </asp:ImageButton>
                                &nbsp;
                                <asp:ImageButton ID="next" runat="server" ImageUrl="../Images/b_next.gif" Visible="False"
                                    CausesValidation="False"></asp:ImageButton></td>
                            <td style="width:5%">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
